/**
 * 溯源管理路由
 * huangjianhong
 * 2023/5/25
 */

import Layout from '@/views/layout'
import Layout2 from '@/views/layout/index2'

let traceSourceRouter = {
  path: '/productSourceSystem',
  component: Layout2,
  redirect: 'noredirect',
  name: 'productSourceSystem',
  needAuth: true,
  meta: { title: '产品追溯系统', icon: 'basicsdata' },
  children: [
    {
      path: '/retraceManage',
      component: Layout,
      meta: { title: '首页管理', noCache: true, breadcrumb: false },
      redirect: '/retraceManage/index',
      name: 'breedingCompany',
      needAuth: true,
      children: [{
        path: 'index',
        name: 'retraceManage',
        component: () => import('@/views/retraceManage/index'),
        meta: { title: '首页管理', noCache: true }
      },
     ]
    },
    {
      path: '/breedingManage',
      component: Layout,
      meta: { title: '养殖管理', noCache: true, breadcrumb: false },
      redirect: 'noredirect',
      name: 'breedingCompany',
      needAuth: true,
      children: [
        {
          path: 'index',
          name: 'breedingManage',
          component: () => import('@/views/breedingManage/index'),
          meta: { title: '养殖管理', noCache: true }
        },
        {
          path: 'enterTable',
          name: 'enter',
          component: () => import('@/views/breedingManage/table'),
          meta: { title: '雏鸡入场', noCache: true },
          hidden: true
        },
        {
          path: 'antigenDectectionTable',
          name: 'antigenDectection',
          component: () => import('@/views/breedingManage/table'),
          meta: { title: '抗体检测', noCache: true },
          hidden: true
        },
        {
          path: 'feedingTable',
          name: 'feeding',
          component: () => import('@/views/breedingManage/table'),
          meta: { title: '饲喂记录', noCache: true },
          hidden: true
        },
        {
          path: 'immunityTable',
          name: 'immunity',
          component: () => import('@/views/breedingManage/table'),
          meta: { title: '免疫', noCache: true },
          hidden: true
        },
        {
          path: 'pharmacyTable',
          name: 'pharmacy',
          component: () => import('@/views/breedingManage/table'),
          meta: { title: '用药', noCache: true },
          hidden: true
        },
      ]
    },
    {
      path: '/quarantineManage',
      component: Layout,
      meta: { title: '检疫管理', noCache: true, breadcrumb: false },
      redirect: 'noredirect',
      name: 'breedingCompany',
      needAuth: true,
      children: [
        {
          path: 'index',
          name: 'quarantineManage',
          component: () => import('@/views/breedingManage/table'),
          meta: { title: '检疫管理', noCache: true }
        },
      ]
    },
    {
      path: '/logisticsManage',
      component: Layout,
      meta: { title: '物流管理', noCache: true, breadcrumb: false },
      redirect: 'noredirect',
      name: 'breedingCompany',
      needAuth: true,
      children: [
        {
          path: 'index',
          name: 'logisticsManage',
          component: () => import('@/views/breedingManage/table'),
          meta: { title: '物流管理', noCache: true }
        },
      ]
    },
    {
      path: '/slaughterManage',
      component: Layout,
      meta: { title: '屠宰管理', noCache: true, breadcrumb: false },
      redirect: 'noredirect',
      name: 'breedingCompany',
      needAuth: true,
      children: [
        {
          path: 'index',
          name: 'slaughterManage',
          component: () => import('@/views/breedingManage/table'),
          meta: { title: '屠宰管理', noCache: true }
        },
      ]
    },
  ]
}
export default traceSourceRouter
